package com.flyco.modules.stm.service;

import com.flyco.common.api.vo.Result;
import com.flyco.modules.stm.entity.OaPushDTO;
import com.flyco.modules.stm.entity.StmReplenishmentItem;
import com.flyco.modules.stm.entity.StmReplenishment;
import com.baomidou.mybatisplus.extension.service.IService;
import com.flyco.modules.stm.model.ReplenishmentContext;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 门店要货单
 * @Author: flyco
 * @Date:   2020-11-23
 * @Version: V1.0
 */
public interface IStmReplenishmentService extends IService<StmReplenishment> {

	Result<?> apply(Integer status, List<Long> ids);

	Result<ReplenishmentContext> pushOABefore(OaPushDTO oaPushDTO, String userName);

	/**
	 * 添加一对多
	 * 
	 */
	public void saveMain(StmReplenishment stmReplenishment, List<StmReplenishmentItem> stmReplenishmentItemList) ;
	
	/**
	 * 修改一对多
	 * 
	 */
	public void updateMain(StmReplenishment stmReplenishment, List<StmReplenishmentItem> stmReplenishmentItemList);
	
	/**
	 * 删除一对多
	 */
	public void delMain(Long id);
	
	/**
	 * 批量删除一对多
	 */
	public void delBatchMain(Collection<? extends Serializable> idList);
	
}
